<template>
  <div>
    <h3>child组件 -- {{ title }}</h3>
    <button @click="setTitle">修改Title</button>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data() {
    return {}
  },
  methods: {
    setTitle() {
      this.$emit('update:title', Date.now())
    }
  }
}
</script>

<style lang="scss" scoped></style>
